package com.heima.user.controller;

import com.heima.common.dtos.ResponseResult;
import com.heima.model.user.dtos.ApUserFollowDto;
import com.heima.user.service.ApUserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserFollowController {
    @Autowired
    private ApUserFollowService apUserFollowService;

    /**
     * 关注与取消关注
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/user/user_follow")
    public ResponseResult userFollow(@RequestBody ApUserFollowDto dto ){
        return apUserFollowService.userFollow(dto);
    }
}
